<template>
	<view class="course_list_box">
		<view class="course_list_con">
			<view class="course_list_info" 
			@click="clickVideo"
			v-for="(item,index) in videoList" :key="index">
				<view class="course_list_info_txt">{{item.type_name}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"courseList",
		data() {
			return {
				
			};
		},
		props:{
			videoList:{
				type:Array,
				default:function(){
					return []
				}
			}
		},
		methods:{
			clickVideo(){
				uni.navigateTo({
					url:"/pages/course/video/video"
				})
			}
		}
	}
</script>

<style lang="scss">
.course_list_box {
		display: flex;
		box-sizing: border-box;
		flex-direction: column;
		width: 100%;
		padding: 0 15px;

		.course_list_con {
			display: flex;
			box-sizing: border-box;
			flex-direction: column;
			flex-grow: 1;

			.course_list_info {
				display: flex;
				box-sizing: border-box;
				flex-direction: center;
				overflow: hidden;
				flex: 1;
				width: 100%;
				height: 45px;
				line-height: 45px;
				font-size: 14px;
				border-bottom: 1px solid #efefef;

				.course_list_info_txt {
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}
		}
	}
</style>
